package com.muyu.remote.factory;

import com.muyu.common.core.domain.Result;
import com.muyu.remote.DanmoMarketProductsAdd;
import com.muyu.system.domain.DanmoMarketProducts;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * DanmoMarketProductsAdd
 *
 * @author LeYang
 * on 2025/1/16
 */
public class DanmoMarketProductsFactory implements FallbackFactory<DanmoMarketProductsAdd> {
    @Override
    public DanmoMarketProductsAdd create(Throwable cause) {
        return new DanmoMarketProductsAdd() {

            @Override
            public Result add(DanmoMarketProducts danmoMarketProducts) {
                    return Result.error("拾贝添加：" + cause.getMessage());
            }
        };
    }
}
